Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / SparseArray<T> Class / CopyTo Method / CopyTo(T[],Int32,Int32) Method
The one-dimensional System.Array that is the destination of the elements copied from the current SparseArray.
A 32-bit integer that represents the index in array at which copying begins.
The number of elements will be copied.


In This Topic
    CopyTo(T[],Int32,Int32) Method
    In This Topic
    Copies all the elements of the current one-dimensional System.Array to the specified one-dimensional SparseArray starting at the specified destination SparseArray index. The index is specified as a 32-bit integer.
    Syntax
    'Declaration
     
    
    Public Overloads Sub CopyTo( _
       ByVal array() As T, _
       ByVal arrayIndex As Integer, _
       ByVal length As Integer _
    ) 
    'Usage
     
    
    Dim instance As SparseArray(Of T)
    Dim array() As T
    Dim arrayIndex As Integer
    Dim length As Integer
     
    instance.CopyTo(array, arrayIndex, length)
    public void CopyTo( 
       T[] array,
       int arrayIndex,
       int length
    )

    Parameters

    array
    The one-dimensional System.Array that is the destination of the elements copied from the current SparseArray.
    arrayIndex
    A 32-bit integer that represents the index in array at which copying begins.
    length
    The number of elements will be copied.
    See Also